package com.gxa.logistics.mapper;

import com.gxa.logistics.domain.dto.RoleReqListDTO;
import com.gxa.logistics.domain.dto.RoleSaveDTO;
import com.gxa.logistics.domain.dto.RoleUpdateDTO;
import com.gxa.logistics.domain.vo.RoleVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RoleMapper {
    List<RoleVO> findRoleByWhere(RoleReqListDTO roleReqListDTO);

    void insertRole(RoleSaveDTO roleSaveDTO);

    void updateRole(RoleUpdateDTO roleUpdateDTO);

    void deleteRoleById(Integer roleId);

    Integer selectRoleIdByFlag(String flag);

    List<RoleVO> findAll();

}
